#pragma once
#include <NetWork.hpp>
#include <mutex>
#include <iostream>
using namespace std;
using namespace Network;
extern SocketServer * server;
extern int data_tem[4];
extern mutex mutex_data;
void init_network();
template<typename T>
void pri(string Key, T Value, bool NewLine = true, int Tab = 0, int EndTab = 0)
{
	rep(i, 1, Tab * 4)
	{
		cout << " ";
	}
	cout << "[" << Key << "] " << Value;
	rep(i, 1, EndTab * 4)
	{
		cout << " ";
	}
	if (NewLine)cout << endl;
}